package org.example.StudentManagementSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("courses")
@Schema(description = "课程实体类，用于表示系统中的课程信息")
public class Course {
    @TableId(type = IdType.AUTO, value = "id")
    @Schema(description = "课程的唯一标识符", example = "1")
    private Integer id;

    @Schema(description = "课程的名称", example = "计算机科学基础")
    private String name;

    @Schema(description = "课程的描述", example = "这是一门介绍计算机科学基础知识的课程")
    private String description;

    @Schema(description = "课程的学分", example = "3")
    private int credit;

    @Schema(description = "授课教师的唯一标识符", example = "101")
    private Integer teacherId;
}
